import request from '@/utils/request'
export function doAdd(data) {
  //添加
  return request({
    url: '/adminapi/starslideshow/save',
    method: 'post',
    data,
  })
}
export function getList(params) {
  //轮播图表
  return request({
    url: '/adminapi/starslideshow/list', //cha
    method: 'get',
    params,
    headers: { 'content-type': 'multipart/form-data' }, //请求头
  })
}

export function geturl(params) {
  return request({
    url: '/adminapi/file/get', //获取图片路径
    method: 'get',
    params,
  })
}
export function geturls(params) {
  return request({
    url: '/adminapi/file/gets', //获取图片路径
    method: 'get',
    params,
  })
}
export function doDelete(params) {
  return request({
    url: '/adminapi/starslideshow/delete', //删除
    method: 'GET',
    params,
    headers: { 'content-type': 'multipart/form-data' }, //请求头
  })
}
export function doEdit(data) {
  //修改
  return request({
    url: '/adminapi/starslideshow/update',
    method: 'post',
    data,
  })
}
